package com.arrogames.blondbattle.ui 
{
	import feathers.controls.LayoutGroup;
	import feathers.controls.Screen;
	import feathers.layout.AnchorLayoutData;
	import starling.display.DisplayObjectContainer;
	import starling.events.Event;
	
	/**
	 * ...
	 * @author Robin van den Bogaard
	 */
	
	 public class GameScreen extends Screen {
		 
		private var _entityContainer:LayoutGroup;
		private var _uiContainer:LayoutGroup;
		private var interfaceContainer:LayoutGroup;
		
		public function GameScreen() {
			addEventListener(Event.ADDED_TO_STAGE, addedToStage);
			
			_entityContainer = new LayoutGroup();
			_entityContainer.layoutData = new AnchorLayoutData(0,0,0,0);
			
			_uiContainer = new LayoutGroup();
			_uiContainer.layoutData = new AnchorLayoutData(0,0,0,0);
		}
		
		private function addedToStage(e:Event):void {
			removeEventListener(Event.ADDED_TO_STAGE, addedToStage);
			
			addChild(entityContainer);
			addChild(uiContainer);
		}
		
		public function get entityContainer():DisplayObjectContainer {
			return _entityContainer;
		}
		
		public function get uiContainer():DisplayObjectContainer {
			return _uiContainer;
		}
		
	}

}